#pragma once
#ifndef myIApplication_h__
#define myIApplication_h__


#include "./myIEventManager.h"
#include "./myIResManager.h"
#include "./myIWinManager.h"

#include "../adapter/skyOS.h"
namespace Framework
{
class myApplication : public myTreeNode
{
public:
	myApplication():myTreeNode(xTypeId13("myApplication")){}
	//////////////////////////////////////////////////////////////////////////
	virtual TResult			handleSendEvent(myEventSender* sender,myEvent* event) = 0;
	virtual TBool			handlePostEvent(myEventSender* sender,myEvent* event) = 0;
	//virtual TResult			handleNetworkEvent(myEventSender* sender,myEvent* event) = 0;
	virtual TVoid			sendSessionEvent(myIEventManager* manager,myEvent* event) = 0;
	virtual TVoid			sendWindowsEvent(myIEventManager* manager,myEvent* event) = 0;
	virtual TVoid			sendNetworkEvent(myIEventManager* manager,myEvent* event) = 0;
	virtual TBool			sendSystemEvent(myIEventManager* manager,myEvent* event) = 0;

	virtual myTreeManager*  	getTreeManager() = 0;
	virtual myIWinManager*  	getWindowManager() = 0;
	virtual myIEventManager*	getEventManager() = 0;
	virtual myIResManager*		getResManager() = 0;

};
}

#endif // myApplet_h__
